package com.cswangdao.service;

import com.cswangdao.domain.dto.StoragePageDTO;
import com.cswangdao.domain.po.Storage;
import com.cswangdao.result.PageResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.io.FileNotFoundException;
import java.io.IOException;

public interface StorageService {
    Storage upload(MultipartFile file) throws IOException;

    //void dowanload(String uuid, HttpServletResponse resp);

    PageResult<Storage> pageQueryInfo(StoragePageDTO pageDTO);

    void deleteById(Integer id);

    void updateById(Storage storage);
}
